package storage;

import java.util.List;

import storage.beans.SimulationBean;

public interface IDataStorage {
  /**
   * Save all the simulation data in the bean (including grid and cell information).
   * 
   * @param sim
   */
  public void saveSimulation(SimulationBean sim) throws java.io.IOException, org.jdom.JDOMException;
  
  /**
   * @return
   *    A List of SimulationBean objects, one object per saved simulation 
   *    that match the specified tilt and eccentricity. 
   *    Each SimulationBean will obviously be populated with all the data 
   *    from the simulation.
   */
  public List getSimulations(int tilt, float eccentricity) throws java.io.IOException, org.jdom.JDOMException;
}
